﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ARS.Control.Custom.Entity.Fields
{
    public class ChoicesDialogField : ForeignKeyField
    {
        public ChoicesDialogField()
        {
            base.Widget = new Forms.ChoicesDialogForm();
        }

        
        /// <summary>
        /// 打开的链接
        /// </summary>
        public string ListUrl
        {
            get;
            set;
        }
        ///// <summary>
        ///// 取值在td里面的第一个
        ///// </summary>
        //public int DataValueIndex
        //{
        //    get;
        //    set;
        //}
        ///// <summary>
        ///// 文本在td的索引
        ///// </summary>
        //public int DataTextIndex
        //{
        //    get;
        //    set;
        //}
        /// <summary>
        /// value取值的classname
        /// </summary>
        public string DataValueClassName
        {
            get;
            set;
        }
        /// <summary>
        /// text取值的classname
        /// </summary>
        public string DataTextClassName
        {
            get;
            set;
        }
        /// <summary>
        /// 最大选择数量
        /// </summary>
        public int MaxChoicesNum
        {
            get;
            set;
        }
        /// <summary>
        /// 主键加密
        /// </summary>
        public bool IsEncryptKey
        {
            get;
            set;
        }

        /// <summary>
        /// 显示的时候用的查询条件
        /// </summary>
        public string ShowQuerySql
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        public string SaveKeyFieldName { get; set; }

        public string SaveTableName { get; set; }
        //public string DataValueField
        //{
        //    get;
        //    set;
        //}

        //public string DataTextField
        //{
        //    get;
        //    set;
        //}
    }
}
